Moderate: RHUI 4.5.0 release - Security, Bug Fixes, and Enhancements

Related Vulnerabilities: CVE-2023-30608   CVE-2023-31047  

Synopsis

Moderate: RHUI 4.5.0 release - Security, Bug Fixes, and Enhancements

Type/Severity

Security Advisory: Moderate

Red Hat Insights patch analysis

Identify and remediate systems affected by this advisory.

View affected systems

Topic

An updated version of Red Hat Update Infrastructure (RHUI) is now available. RHUI 4.5 fixes several security and operational bugs and also adds several new features.

Description

Red Hat Update Infrastructure (RHUI) offers a highly scalable, highly redundant framework that enables you to manage repositories and content. It also enables cloud providers to deliver content and updates to Red Hat Enterprise Linux (RHEL) instances.

Security Fix(es):

  • Django: Potential bypass of validation when uploading multiple files using a single form field (CVE-2023-31047)
  • sqlparse: Parser contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service) (CVE-2023-30608)

This RHUI update fixes the following bugs:

  • Previously, the `rhui-manager` command used the `logname` command to obtain the login name. However, when `rhui-manager` is run using the `rhui-repo-sync` cron job, a login name is not defined. Consequently, emails sent by the cron job contained the error message `logname: no login name`. With this update, `rhui-manager` does not obtain the login name using the `logname` command and the error message is no longer generated.
  • Previously, when an invalid repository ID was used with the `rhui-manager` command to synchronize or delete a repository, the command failed with following error:

`An unexpected error has occurred during the last operation.`
Additionally, a traceback was also logged.
With this update, the error message has been improved and failure to run no longer logs a traceback.

This RHUI update introduces the following enhancements:

  • With this update, the client configuration RPMs in `rhui-manager` prevent subscription manager from automatically enabling `yum` plugins. As a result, RHUI repository users will no longer see irrelevant messages from subscription manager. (BZ#1957871)
  • With this update, you can generate machine-readable files with the status of each RHUI repository. To use this feature, run the following command:

`rhui-manager --non-interactive status --repo_json <output file>`
(BZ#2079391)

  • With this update, the `rhui-manager` CLI command uses a variety of unique exit codes to indicate different types of errors. For example, if you attempt to add a Red Hat repository that has already been added, the command will exit with a status of 245. However, if you attempt to add a Red Hat repository that does not exist in the RHUI entitlement, the command will exit with a status of 246. For a complete list of codes, see the `/usr/lib/python3.6/site-packages/rhui/common/rhui_exit_codes.py` file.

Solution

Before applying this update, make sure all previously released errata relevant to your system have been applied.

For detailed instructions on how to apply this update, see:
https://access.redhat.com/documentation/en-us/red_hat_update_infrastructure/4/html/migrating_red_hat_update_infrastructure/assembly_upgrading-red-hat-update-infrastructure_migrating-red-hat-update-infrastructure

For other information, see the product documentation:
https://access.redhat.com/documentation/en-us/red_hat_update_infrastructure/4

Affected Products

  • Red Hat Update Infrastructure 4 x86_64

Fixes

  • BZ - 1957871 - [RFE} Client rpms created in RHUI don't prevent auto-enable of subscription manager plugins
  • BZ - 2079391 - Feature request to provide sync/repo status of each repo in a JSON file for automated monitoring
  • BZ - 2187903 - CVE-2023-30608 sqlparse: Parser contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service)
  • BZ - 2192565 - CVE-2023-31047 python-django: Potential bypass of validation when uploading multiple files using one form field
  • RHUI-217 - [RFE] Client rpms created in RHUI don't prevent auto-enable of subscription manager plugins
  • RHUI-263 - [RFE] Bug 2079391 - Feature request to provide sync/repo status of each repo in a JSON file for automated monitoring
  • RHUI-356 - "logname: no login name" appears, twice, in e-mails sent by the rhui-repo-sync cron job
  • RHUI-395 - Change error reporting of rhui-manager to be configurable
  • RHUI-424 - repo deletion for an un-added repo results in a traceback
  • RHUI-75 - repo sync for an un-added repo results in a traceback
  • RHUI-430 - Installation fails on RHEL 8.9